package com.xdap.keymen.controller.punch;

import com.xdap.keymen.service.punch.PunchCustomerComplaintService;
import com.xdap.motor.vo.ResponseVo;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 客诉单
 */
@RestController
@RequestMapping("/custom/punch/complaint")
@RequiredArgsConstructor
@Slf4j
public class PunchCustomerComplaintController {
private  final PunchCustomerComplaintService punchCustomerComplaintService;
    @PostMapping("/sync")
    public ResponseVo syncUserPoints(@RequestParam String YXCNum) {
        return punchCustomerComplaintService.saveCustomerComplaint(YXCNum);
    }
}
